package com.app.designpattern.structural.decorator.v2;

/**
 * USER: zjw
 * DATA: 2019/4/15 0015
 * TIME: 下午 2:40
 */
public class ADecorator extends ABattercake {
    private ABattercake aBattercake;

    public ADecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    @Override
    public String desc() {
        return this.aBattercake.desc();
    }

    @Override
    public int cost() {
        return this.aBattercake.cost();
    }
}
